#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/7/19 10:56 上午
# @Author : lihc
# @File : conftest.py

# 实例化对象，并在开始计算前和计算结束后打印信息
import pytest
import yaml
from CalcCase.calc import Calc


def get_data(tag):
    data = yaml.safe_load(open('data.yml'))
    return data[tag]


@pytest.fixture(scope='class')
def get_obj():
    cal_obj = Calc()
    print('计算开始')
    yield cal_obj
    print('计算结束')


def hhh():
    print('123')
